package com.juyu.miliao.api.controller;

import com.juyu.miliao.api.domain.TextCommunication;
import com.juyu.miliao.api.service.TextCommunicationService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 *  视频聊天添加的文字沟通控制层
 * @Auther: 卜加超
 * @Date: 2019/4/24 11:23
 * @Description:
 */
@RestController
@RequestMapping("textCommunication")
public class TextCommunicationController {
    @Resource
    private TextCommunicationService textCommunicationService;
    @GetMapping("/list")
    public List<TextCommunication> getList(){
        return textCommunicationService.getTextCommunicationList();
    }
}
